package cn.itcast.nems.order.dao.mapper;

import cn.itcast.nems.order.dao.dataobject.JournalDiscountDO;
import cn.itcast.nems.order.dao.entity.JournalDiscount;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface JournalDiscountMapper extends BaseMapper<JournalDiscount> {

    /**
     * 根据条件分页查询
     * @author 高昌露
     * @since 2023/12/8 15:48
     * @param page 分页参数
     * @param recordDO 查询条件
     * @return com.baomidou.mybatisplus.core.metadata.IPage<cn.itcast.nems.order.dao.dataobject.JournalDiscountDO>
     */
    IPage<JournalDiscountDO> findPageList(Page<JournalDiscountDO> page, @Param("param") JournalDiscountDO recordDO);
}
